﻿namespace MDXStudio
{
    using Microsoft.AnalysisServices;
    using System;

    internal class TWSEQueryData : TWEvent
    {
        internal string m_MeasureGroupName;

        internal TWSEQueryData(TraceEventArgs e) : base(e)
        {
        }

        internal override int GetImageIndex()
        {
            return 3;
        }

        internal override string GetLabel()
        {
            if (this.m_MeasureGroupName != null)
            {
                return string.Format("SE query to Measure Group '{0}'", this.m_MeasureGroupName);
            }
            return "SE query to Measure Group";
        }
    }
}

